import styles from './home.module.css'
import instance from '../../axios/index'
import { useNavigate } from 'react-router-dom'

const HomeView = () => {

    const navigate = useNavigate()

    const jumpAsk = ()=>{
        navigate('/asksick')
    }

    const jumpCharts = ()=>{
        navigate('/charts')
    }

    const jumpTimeLine = ()=>{
        navigate('/timeline')
    }

    return <>
        <div className={styles.head}>
            这是标题
        </div>
        <div className={styles.quan}>
            <div className={styles.jump} onClick={jumpAsk}>
问诊提醒
            </div>
            <div className={styles.jump} onClick={jumpCharts}>
                身体情况图表展示
            </div>
            <div className={styles.jump} onClick={jumpTimeLine}>
                时间线展示
            </div>
        </div>
        <div className={styles.headCard}>
问诊提醒简单展示
        </div>
        {/* <div className={styles.third}>
跳转身体情况图表页面
        </div> */}
        <div className={styles.guang}>
身体情况
        </div>
        {/* <div className={styles.fuwu}>
            跳转时间线展示服药提醒页面
        </div> */}
        <div className={styles.kuai}>
服药提醒简单展示
        </div>
    </>
}

export default HomeView